package com.ug.config.security;

import com.ug.system.entity.vo.SysUserVO;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author LY
 * @create 2024/7/16 17:13
 * @Description JwtUser
 */
@Getter
@Setter
public class JwtUser {

    private SysUserVO userDto;

    private String token;

    private String refreshToken;

    /**
     * 自定义登录后返回的用户对象
     * @param token token
     * @param refreshToken 刷新token
     * @param userDto 用户信息dto
     */
    public JwtUser(String token, String refreshToken, SysUserVO userDto){
        this.token = token;
        this.refreshToken = refreshToken;
        this.userDto = userDto;
    }
}
